<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
	<head>
		<meta charset="UTF-8">
		<!-- <link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css"> -->
		<link rel="stylesheet" type="text/css" href="css/houtai_left.css" />
		<!-- <script type="text/javascript" class="autoinsert" src="js/jquery-2.2.0.min.js"></script> -->
		<script type="text/javascript" src="js/houtai_left.js"></script>
		<title></title>
	</head>
	<body>

        <input type="hidden" id="now_left" value="${left}" />
		
		<div class="left_y" id="left_y_userinfo">
			<a href="${pageContext.request.contextPath}/userinfo" class="left_a_first" id="left_userinfo">
				<span><i class="fa fa-user" style="padding-right: 13px;margin-left: 3px;"></i> 用户列表</span>
			</a>
		</div>
		
		<div class="left_y" id="left_y_scenic_spot">
			<a href="${pageContext.request.contextPath}/scenic_spot" class="left_a_first" id="left_scenic_spot">
				<span><i class="fa fa-bullhorn" style="padding-right: 10px;"></i> 所有景区</span>
			</a>
			<a href="${pageContext.request.contextPath}/to_addscenic_spot" class="left_a" id="left_addscenic_spot">
				<span><i class="fa fa-tag" style="padding-right: 12px;"></i> 添加景区</span>
			</a>
			<a href="#" class="left_a" id="left_updatescenic_spot" onclick="scenic_spot_update()">
				<span><i class="fa fa-pencil-square-o" style="padding-right: 10px;"></i> 修改景区</span>
			</a>
		</div>
		
		<div class="left_y" id="left_y_place">
			<a href="${pageContext.request.contextPath}/place" class="left_a_first" id="left_place">
				<span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> 所有景点
			</a>
			<a href="${pageContext.request.contextPath}/to_addplace" class="left_a" id="left_addplace">
				<span class="glyphicon glyphicon-tag" aria-hidden="true"></span> 添加景点
			</a>
			<a href="#" class="left_a" id="left_updateplace" onclick="place_update()">
				<span><i class="fa fa-pencil-square-o" style="padding-right: 10px;"></i> 编辑景点</span>
			</a>
		</div>
		
		<div class="left_y" id="left_y_hotel">
			<a href="${pageContext.request.contextPath}/hotel" class="left_a_first" id="left_hotel">
				<span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> 所有旅店
			</a>
			<a href="${pageContext.request.contextPath}/to_addhotel" class="left_a" id="left_addhotel">
				<span class="glyphicon glyphicon-tag" aria-hidden="true"></span> 添加旅店
			</a>
			<a href="#" class="left_a" id="left_updatehotel" onclick="hotel_update()">
				<span><i class="fa fa-pencil-square-o" style="padding-right: 10px;"></i> 编辑旅店</span>
			</a>
		</div>
		
		<div class="left_y" id="left_y_restaurant">
			<a href="${pageContext.request.contextPath}/restaurant" class="left_a_first" id="left_restaurant">
				<span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> 所有餐厅
			</a>
			<a href="${pageContext.request.contextPath}/to_addrestaurant" class="left_a" id="left_addrestaurant">
				<span class="glyphicon glyphicon-tag" aria-hidden="true"></span> 添加餐厅
			</a>
			<a href="#" class="left_a" id="left_updaterestaurant" onclick="restaurant_update()">
				<span><i class="fa fa-pencil-square-o" style="padding-right: 10px;"></i> 编辑餐厅</span>
			</a>
		</div>
		
		<div class="left_y" id="left_y_tourist">
			<a href="${pageContext.request.contextPath}/tourist" class="left_a_first" id="left_tourist">
				<span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> 我的路线
			</a>
			<a href="${pageContext.request.contextPath}/to_addtourist" class="left_a" id="left_addtourist">
				<span class="glyphicon glyphicon-tag" aria-hidden="true"></span> 添加路线
			</a>
			<a href="#" class="left_a" id="left_updatetourist" onclick="tourist_update()">
				<span><i class="fa fa-pencil-square-o" style="padding-right: 10px;"></i> 编辑路线</span>
			</a>
			<a href="${pageContext.request.contextPath}/my_restaurant" class="left_a_first" id="left_my_restaurant">
				<span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> 我的餐厅
			</a>
			<a href="${pageContext.request.contextPath}/to_addmy_restaurant" class="left_a" id="left_addmy_restaurant">
				<span class="glyphicon glyphicon-tag" aria-hidden="true"></span> 添加餐厅
			</a>
			<a href="#" class="left_a" id="left_updatemy_restaurant" onclick="my_restaurant_update()">
				<span><i class="fa fa-pencil-square-o" style="padding-right: 10px;"></i> 编辑餐厅</span>
			</a>
			<a href="${pageContext.request.contextPath}/my_hotel" class="left_a_first" id="left_my_hotel">
				<span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> 我的旅店
			</a>
			<a href="${pageContext.request.contextPath}/to_addmy_hotel" class="left_a" id="left_addmy_hotel">
				<span class="glyphicon glyphicon-tag" aria-hidden="true"></span> 添加旅店
			</a>
			<a href="#" class="left_a" id="left_updatemy_hotel" onclick="my_hotel_update()">
				<span><i class="fa fa-pencil-square-o" style="padding-right: 10px;"></i> 编辑旅店</span>
			</a>
		</div>
		
		<script type="text/javascript">
			function scenic_spot_update() {
				layer.msg('请在 景区列表 中选择要编辑的景区!', {
					time: 2000
				});
			}
			function place_update() {
				layer.msg('请在 景点列表 中选择要编辑的景点!', {
					time: 2000
				});
			}
			function hotel_update() {
				layer.msg('请在 旅店列表 中选择要编辑的旅店!', {
					time: 2000
				});
			}
			function restaurant_update() {
				layer.msg('请在 餐厅列表 中选择要编辑的餐厅!', {
					time: 2000
				});
			}
			function tourist_update() {
				layer.msg('请在 我的路线 中选择要编辑的路线!', {
					time: 2000
				});
			}
			function my_restaurant_update() {
				layer.msg('请在 我的餐厅 中选择要编辑的餐厅!', {
					time: 2000
				});
			}
			function my_hotel_update() {
				layer.msg('请在 我的旅店 中选择要编辑的旅店!', {
					time: 2000
				});
			}
		</script>

	</body>
</html>
